import base from './css/base.less'
import common from './css/common.less'
import {
    componentA
} from './components/a.js'
var app = document.getElementById('app')
console.log(base, common)
// var div=document.createElement('div')
var list = componentA()
console.log('list', list)
app.appendChild(list)
// renderA();
// div.className='box'
// app.appendChild(div)
$.get('https://cnodejs.org/api/v1/topics', function (data) {
    console.log(data)
})
if (module.hot) {
    module.hot.accept('./components/a', function () {
        app.removeChild(list)
        let newlist = require('./components/a').componentA()
        app.appendChild(newlist)
        list = newlist
    })
}
